package day06homework1;

public class CarTest extends  Car {
    public static void main(String[] args) {

        Car bm = new Car();
        bm.brand = "宝马";
        bm.color = "白";
        bm.price = 5000000;
        bm.capacity = 5;
        bm.start();
        bm.run();
        bm.stop();

        System.out.println("-------");

        Car bc = new Car();
        bc.brand = "奔驰";
        bc.color = "黑";
        bc.price = 9000000;
        bc.capacity = 4;
        bc.start();
        bc.run();
        bc.stop();

        System.out.println("-------");

        Car ad = new Car("奔驰","银色",600000,6);
        ad.start();
        ad.run();
        ad.stop();
    }
}
